package com.stormrage.edu.dao.ent.impl;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.stormrage.edu.dao.ent.EntEnterpriseScoreDao;
import com.stormrage.entity.ent.EntEnterpriseScore;
import com.stormragetech.core.dao.MysBaseDao;
import com.stormragetech.core.exception.StormrageTechException;

/**
 * @Title: EntEnterpriseScoreDaoImpl.java
 * @Package com.stormrage.edu.dao.ent.impl
 * @Description: 企业上传成绩权限 Dao
 * @author www.stormragetech.com
 * @date 2016年4月28日
 * @version V1.0
 */
@Repository
public class EntEnterpriseScoreDaoImpl extends MysBaseDao implements EntEnterpriseScoreDao {

	private static final Logger logger = LoggerFactory.getLogger(EntEnterpriseDaoImpl.class);

	@Override
	public EntEnterpriseScore queryByEntId(final Map<String, Object> map) throws StormrageTechException {

		logger.debug(" 【 Dao 】- 【 EntEnterpriseScoreDao 】- 【 queryByEntId 】-【 STARTED 】");

		final String query = "SELECT * FROM ent_enterprise_score WHERE ent_id = :entId";
		logger.debug(" 数据库执行语句为 " + query);

		EntEnterpriseScore entity = queryObject(query, EntEnterpriseScore.class, map);

		logger.debug(" 【 Dao 】- 【 EntEnterpriseScoreDao 】- 【 queryByEntId 】-【 COMPLETED 】");
		return entity;

	}

}
